package com.wanfu.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GlobalController {

    @RequestMapping("/404")
    public Object error404(Exception e) {
        return e.toString();
    }

    @RequestMapping("/500")
    public Object error500(Exception e){
        return e.toString();
    }
}
